import { Controller, Get, Param } from '@nestjs/common';
import { SpecsType_Service } from '../specsType/specsType.service';
import { ApiTags } from '@nestjs/swagger';
import { util_ApiResponse_Base } from '@/common/util/apiResponse';
import { util_Index_ReturnContent } from '@/common/util/index';

@Controller('/web/specsTypeWeb')
@ApiTags('specsTypeWeb 规格属性')
export class SpecsTypeWeb_Controller {
  constructor(private readonly specsType_Servicc: SpecsType_Service) {}

  @Get('/detail/:id')
  @util_ApiResponse_Base({
    dataType: 'dataType_ell',
    //apiKey: '/web/specsTypeWeb/detail/:id Get',
    noAuth: true,
  })
  async specsTypeWeb_FindAll(@Param('id') id: number) {
    return util_Index_ReturnContent(await this.specsType_Servicc.specsType_FindAll({ platFormId: id }));
  }
}
